﻿using Homework.DAL;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace Homework.API.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class UserController : ControllerBase
    {
        UserDAL dal;
        public UserController(UserDAL dal)
        {
            this.dal = dal;
        }
        [HttpGet("Login")]
        public dynamic Login(string name, string pwd) 
        {
        var res=dal.Login(name, pwd);
            return Ok(res);
        }
    }
}
